import Layout from '@/pages/public/layout' // 公共部分

const tuan = [{
  path: '/promotion/tuan/',
  component: Layout,
  children: [{
    path: 'list',
    component: () => import('@/pages/market/promotion/tuan/index.vue'),
    meta: {
      title: '拼团-列表',
      permission: 'market.promotion.tuan.list'
    }
  }, {
    path: 'create',
    component: () => import('@/pages/market/promotion/tuan/create.vue'),
    meta: {
      title: '拼团-新建',
      permission: 'market.promotion.tuan.create'
    }
  }, {
    path: ':id/edit',
    component: () => import('@/pages/market/promotion/tuan/edit.vue'),
    meta: {
      title: '拼团-编辑',
      permission: 'market.promotion.tuan.edit'
    }
  }, {
    path: ':id/report',
    component: () => import('@/pages/market/promotion/tuan/report/index.vue'),
    meta: {
      title: '拼团-报表',
      permission: 'market.promotion.tuan.report'
    }
  }, {
    path: ':id/report/:tuanId(\\d+)/info',
    component: () => import('@/pages/market/promotion/tuan/report/info.vue'),
    meta: {
      title: '拼团-报表-详情',
      permission: 'market.promotion.tuan.report'
    }
  }]
}]

export default tuan
